package com.sky.service;

import com.sky.entity.AddressBook;
import com.sky.result.Result;

import java.util.List;

public interface AddressBookService {
    Result save(AddressBook addressBook);

    Result<List<AddressBook>> list();

    Result updateDefaultAddress(AddressBook addressBook);

    Result<AddressBook> getAddress(Long userId, Long addressId);

    Result delete(Long addressId);

    Result update(AddressBook addressBook);

    Result<AddressBook> defaultAddress();
}
